package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author gxy
 * @since 2022-07-28
 */
@Getter
@Setter
  @TableName("ncg_surveyrecord")
@ApiModel(value = "Surveyrecord对象", description = "")
public class Surveyrecord implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("测量批次")
      private String patid;

      @ApiModelProperty("舒张压")
      private Integer shrink;

      @ApiModelProperty("收缩压")
      private Integer rate;

      @ApiModelProperty("脉搏")
      private Integer diastole;

      @ApiModelProperty("心率")
      private Integer pulse;

//      @ApiModelProperty("测量时间")
//      private LocalDateTime sampleDate;

      @ApiModelProperty("测量时间")
      @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")                    // 表示返回时间类型
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")      // 表示接收时间类型
      private LocalDateTime sampleDate;

//      @ApiModelProperty("测量时间字符")
//      private String sampleDateStr;


}
